<?php

abstract class Joob_View_Abstract  {
	
	protected $script;
	
	public function render($script)	{
		$this->script = $script;
		unset($script);
		
		//start output buffering
		ob_start();
		$this->run($this->script);
		
		return ob_get_clean();
	}
	
	abstract protected function run();
}

?>